module.exports = {
    pages: {
        index: {
            entry: 'src/main.js',
        },
    },
    //关闭语法检查
    lintOnSave: false,
    //第一种
    /*  devServer: {
         proxy: 'http://localhost:5000'
     } */
    //第二种
    devServer: {
        proxy: {
            '/wy': {
                target: 'http://192.168.50.245:5000',
                pathRewrite: { '^/wy': '' },
                ws: true,
                changeOrigin: true

            },
            '/api': {
                target: 'http://192.168.50.245:5000',
                pathRewrite: { '^/api': " " },
            }
        }
    }
}